package ch.trainingtest.service;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import ch.trainingtest.dto.TaskDto;
import ch.trainingtest.dto.UserDto;

@WebService
public interface ITaskManagementService {

	@WebMethod
	public List<TaskDto> getAllTasks();
	
	@WebMethod
	public boolean createTask(@WebParam(name ="taskDto") TaskDto taskDto);
	
	//for testing
	@WebMethod
	public boolean createTaskWithInfo(int uid,String title,String des,int status);
	
	//for testing
	@WebMethod
	public boolean updateTaskTest();
	
	@WebMethod
	public boolean updateTask(@WebParam(name ="taskDto") TaskDto taskDto, @WebParam(name ="modifiedUser") UserDto modifiedUser);
}
